package org.ushio.speech_module.speech.chapter;


import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * @author 陈红
 *
 */
@Getter
@Setter
public class ChapterDTO {
    private Long chapterId;
    private Long bookId;

    @NotBlank(message = "章节标题不能为空")
    private String etitle;

    @NotBlank(message = "章节英文标题不能为空")
    private String title;

    // Constructor
    public ChapterDTO(Long chapterId, Long bookId, String etitle, String title) {
        this.chapterId = chapterId;
        this.bookId = bookId;
        this.etitle = etitle;
        this.title = title;
    }
}
